<%@ page import="java.util.ArrayList" %>
<%@ page import="dao.BillDao" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="bean.Bill" %>
<%@ page import="dao.Bookdao" %>
<%@ page import="bean.Book" %>
<%--
  Created by IntelliJ IDEA.
  User: maoxiangsun
  Date: 2019-07-15
  Time: 09:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <title> 订单 </title>
    <link rel="shortcut icon" href="http://www.sdust.edu.cn/images/favicon.ico" mce_href="images/favicon.ico" type="image/x-icon">
    <link rel="icon" href="http://www.sdust.edu.cn/images/favicon.ico" mce_href="images/favicon.ico" type="image/x-icon">
</head>
<%
    Bookdao bookdao = new Bookdao();
    ArrayList list = bookdao.getAllBooks();
%>


<body>
<table>
    <tr>
        <td> 书名 </td>
        <td> isbn </td>
        <td> 价格 </td>
    </tr>
    <%
        for(int i = 0; i < list.size(); i++) {
            Book book = (Book) list.get(i);
            out.print("<tr>");
            out.print("<td>" + book.getName()+ "</td>");
            out.print("<td>" + book.getIsbn() + "</td>");
            out.print("<td>" + book.getPrice() + "</td>");
            out.print("</tr>");
        }
    %>
</table>
</body>
</html>
